﻿using System;
using Microsoft.Win32;

namespace AxSawyer
{
    public class Settings
    {
        public String ConnectionString
        {
            get { return GetRegistryValue("ConnectionString"); }
        }

        private String GetRegistryValue(string keyName)
        {
            RegistryKey registryKey = Registry.CurrentUser;
            registryKey = registryKey.CreateSubKey("Software\\AxSawyer");
            if (registryKey != null)
            {
                return registryKey.GetValue(keyName).ToString();
            }
            return null;
        }
    }
}
